home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 4664 / 4664.xpi / chrome / twitterbar.jar / content / optionsDialog.xul < prev    next >
Extensible Markup Language  |  2010-02-08  |  4KB  |  83 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <!DOCTYPE overlay SYSTEM "chrome://twitterbar/locale/overlay.dtd" >
  4. <prefwindow
  5.     id="twitterbar-preference-window"
  6.     title="&twitter.options.dialog;"
  7.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
  8.     onload="TWITTERBAR_OPTIONS.init();"
  9.     ondialogaccept="return TWITTERBAR_OPTIONS.accept();"
  10.     type="prefwindow"
  11.     buttons="accept,cancel"
  12.     style="width: 450px;">
  13.     <script type="application/x-javascript" src="chrome://twitterbar/content/options.js" />
  14.     <script type="application/x-javascript" src="chrome://twitterbar/content/common.js" />
  15.     
  16.     <stringbundleset id="stringbundleset">
  17.         <stringbundle id="twitterbar-strings" src="chrome://twitterbar/locale/overlay.properties" />
  18.     </stringbundleset>
  19.     
  20.     <prefpane flex="1" label="&twitter.generalTab;">
  21.         <preferences>
  22.             <preference id="pref-prefix" name="extensions.twitter.web" type="string" />
  23.             <preference id="pref-open-after" name="extensions.twitter.tab" type="bool" />
  24.             <preference id="pref-hide-button" name="extensions.twitter.button" type="bool" />
  25.             <preference id="pref-confirm" name="extensions.twitter.confirm" type="bool" />
  26.             <preference id="pref-show-trends" name="extensions.twitter.showTrends" type="bool" />
  27.             <preference id="pref-shortener" name="extensions.twitter.shortener" type="string" />
  28.             <preference id="pref-hide-oneriot" name="extensions.twitter.oneriotButton" type="bool" />
  29.             <preference id="pref-bitly-login" name="extensions.twitter.bitlyLogin" type="string" />
  30.             <preference id="pref-bitly-api-key" name="extensions.twitter.bitlyApiKey" type="string" />
  31.         </preferences>
  32.         <checkbox id="twitter-tab" label="&twitter.tab;" preference="pref-open-after" />
  33.         <checkbox id="twitter-button" label="&twitter.button;" preference="pref-hide-button"/>
  34.         <checkbox id="oneriot-button" label="&twitter.oneriotButton;" preference="pref-hide-oneriot"/>
  35.         <checkbox id="twitter-confirm" label="&twitter.confirm;" preference="pref-confirm" />
  36.         <checkbox id="twitter-show-trends" label="&twitter.showTrends;" preference="pref-show-trends" />
  37.         <groupbox>
  38.             <description style="max-width: 400px;" control="twitter-web">&twitter.prefixExplanation;</description>
  39.             <hbox align="center">
  40.                 <textbox flex="1" id="twitter-web" preference="pref-prefix" />
  41.             </hbox>
  42.             <description style="max-width: 400px;" control="twitter-web">&twitter.prefixDescription;</description>
  43.         </groupbox>
  44.         <groupbox orient="vertical">
  45.             <hbox align="center">
  46.                 <label control="shortener">&twitter.shortener;</label>
  47.                 <menulist preference="pref-shortener" flex="1" oncommand="TWITTERBAR_OPTIONS.shortenerChange();" id="twitterbar-shortener-menu">
  48.                     <menupopup>
  49.                         <menuitem value="is.gd" label="is.gd" />
  50.                         <menuitem value="bitly" label="bit.ly" />
  51.                         <menuitem value="tinyurl" label="TinyURL" />
  52.                         <menuitem value="" label="&twitter.noShortener;" />
  53.                     </menupopup>
  54.                 </menulist>
  55.             </hbox>
  56.             
  57.             <vbox id="bitly-options" style="display: none;">
  58.                 <description>&twitter.bitlyInstructions;</description>
  59.                 <grid>
  60.                     <columns>
  61.                         <column/>
  62.                         <column flex="1"/>
  63.                     </columns>
  64.                     <rows>
  65.                         <row align="center">
  66.                             <label control="bitly-login">&twitter.bitlyLogin;</label>
  67.                             <textbox preference="pref-bitly-login" flex="1" />
  68.                         </row>
  69.                         <row align="center">
  70.                             <label control="bitly-api-key">&twitter.bitlyApiKey;</label>
  71.                             <textbox preference="pref-bitly-api-key" flex="1" />
  72.                         </row>
  73.                     </rows>
  74.                 </grid>
  75.             </vbox>
  76.         </groupbox>
  77.         <groupbox style="height: 4em;">
  78.             <description id="auth-summary" style="height: 2em;"></description>
  79.             <button oncommand="TWITTERBAR_OPTIONS.clearAuth();" label="&twitter.resetAuth;" />
  80.         </groupbox>
  81.         <spacer style="height: 40px;" />
  82.     </prefpane>
  83. </prefwindow>